package com.desmart.renjiao.http;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import retrofit2.http.Url;

public interface ApiService {

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST(ApiUrl.login)
    Observable<ResponseBody> Login(@Body RequestBody string);

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST(ApiUrl.employeeself)
    Observable<ResponseBody> employeesPort(@Body RequestBody string);

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST(ApiUrl.tokenPort)
    Observable<ResponseBody> tokenPort(@Body RequestBody string);

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST(ApiUrl.checkServiceByMonth)
    Observable<ResponseBody> checkServiceByMonth(@Body RequestBody string);

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST(ApiUrl.checkServiceByDay)
    Observable<ResponseBody> checkServiceByDay(@Body RequestBody string);

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST()
    Observable<ResponseBody> getCommon(@Url String url,@Body RequestBody string);

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST(ApiUrl.getOrganizaiton)
    Observable<ResponseBody> getOrgainzation(@Body RequestBody string);

    @Headers({"Content-Type: text/xml;charset=UTF-8"})
    @POST(ApiUrl.email)
    Observable<ResponseBody> getemail(@Body RequestBody string);

}
